-- $Id: $
-- File name:   tb_SDO_TO_FILE.vhd
-- Created:     4/21/2011
-- Author:      Marcelo Leone
-- Lab Section: 337-06
-- Version:     1.0  Initial Test Bench

library ieee;
--library gold_lib;   --UNCOMMENT if you're using a GOLD model
use ieee.std_logic_1164.all;
--use gold_lib.all;   --UNCOMMENT if you're using a GOLD model

entity tb_SDO_TO_FILE is
end tb_SDO_TO_FILE;

architecture TEST of tb_SDO_TO_FILE is

  function INT_TO_STD_LOGIC( X: INTEGER; NumBits: INTEGER )
     return STD_LOGIC_VECTOR is
    variable RES : STD_LOGIC_VECTOR(NumBits-1 downto 0);
    variable tmp : INTEGER;
  begin
    tmp := X;
    for i in 0 to NumBits-1 loop
      if (tmp mod 2)=1 then
        res(i) := '1';
      else
        res(i) := '0';
      end if;
      tmp := tmp/2;
    end loop;
    return res;
  end;

  component SDO_TO_FILE
    PORT(
         data_out : in std_logic_vector(499 downto 0)
    );
  end component;

-- Insert signals Declarations here
  signal data_out : std_logic_vector(499 downto 0);

-- signal <name> : <type>;

begin
  DUT: SDO_TO_FILE port map(
                data_out => data_out
                );

--   GOLD: <GOLD_NAME> port map(<put mappings here>);

process

  begin

-- Insert TEST BENCH Code Here

    data_out <= "00000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001100000000000000000000000000000000000000000000000000000000000000000000000000";
    wait;
  end process;
end TEST;